package service;
import java.sql.SQLException;
import java.util.List;
import dao.CustomerDao;
import pojo.Customer;
import pojo.Product;

public class Customerservice {
	CustomerDao cdao;
	public Customer login(Customer c) throws ClassNotFoundException, SQLException {
		cdao = new CustomerDao();
		Customer customer = cdao.login(c);
		return customer;
	}
	public List<Product> show(int currentPage,int pageSize) throws ClassNotFoundException, SQLException{
		cdao = new CustomerDao();
		List<Product> list=cdao.PageData(currentPage, pageSize);
		return list;
	}
}
